package com.rivercloud.entity;

import java.sql.Timestamp;

public class TableCol {
	
	private Integer id;
	
	
	private Integer colNum;
	
	// 默认值
	private String defVal;
	
	// 列的类型
	private Integer colType;
	
	// 列名
	private String colName;
	
	private Integer tableId;
	
	private Integer colEditor;
	
	private String tcDesc;
	private Timestamp createTime = new Timestamp(System.currentTimeMillis());
	public TableCol() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public TableCol(Integer id, Integer colNum, String defVal, Integer colType, String colName, Integer tableId,
			Integer colEditor, String tcDesc, Timestamp createTime) {
		super();
		this.id = id;
		this.colNum = colNum;
		this.defVal = defVal;
		this.colType = colType;
		this.colName = colName;
		this.tableId = tableId;
		this.colEditor = colEditor;
		this.tcDesc = tcDesc;
		this.createTime = createTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getColNum() {
		return colNum;
	}

	public void setColNum(Integer colNum) {
		this.colNum = colNum;
	}

	public String getDefVal() {
		return defVal;
	}

	public void setDefVal(String defVal) {
		this.defVal = defVal;
	}

	public Integer getColType() {
		return colType;
	}

	public void setColType(Integer colType) {
		this.colType = colType;
	}

	public String getColName() {
		return colName;
	}

	public void setColName(String colName) {
		this.colName = colName;
	}

	public Integer getTableId() {
		return tableId;
	}

	public void setTableId(Integer tableId) {
		this.tableId = tableId;
	}

	public Integer getColEditor() {
		return colEditor;
	}

	public void setColEditor(Integer colEditor) {
		this.colEditor = colEditor;
	}

	public String getTcDesc() {
		return tcDesc;
	}

	public void setTcDesc(String tcDesc) {
		this.tcDesc = tcDesc;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "TableCol [id=" + id + ", colNum=" + colNum + ", defVal=" + defVal + ", colType=" + colType
				+ ", colName=" + colName + ", tableId=" + tableId + ", tcDesc=" + tcDesc + ", createTime=" + createTime
				+ "]";
	}
 

}
